//
//  TIMCustomMenuItem.m
//  Demo_sdk
//
//  Created by Deli Xia on 2018/7/12.
//  Copyright © 2018年 Deli Xia. All rights reserved.
//

#import "TIMCustomMenuItem.h"
#import "Masonry.h"
#import "TIMDemoMacro.h"

@implementation TIMCustomMenuItem
- (instancetype)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        [self init_TPSCustomMenuItem];
    }
    return self;
}

- (void)init_TPSCustomMenuItem {
    
    self.contentView.backgroundColor = [UIColor clearColor];
    
    self.titleLabel = [[UILabel alloc] init];
    self.titleLabel.font = TPSFontSize(14);
    self.titleLabel.textAlignment = NSTextAlignmentCenter;
    self.titleLabel.textColor = UIColor.whiteColor;
    [self.contentView addSubview:self.titleLabel];
    
    [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.mas_equalTo(self.contentView.mas_centerX);
        make.centerY.mas_equalTo(self.contentView.mas_centerY);
    }];
}
@end
